﻿using System;

using RexToy.UI.Controls;

namespace CSXCSite
{
    public class MainPage : Page
    {
        public MainPage()
            : base(TransitionMode.Slide)
        {
            Block h = new Block();
            h.AppendText("CSXC - Cross Compiler C# code to Javascript code", Tag.H2);
            this.AppendControl(h);

            Block b1 = new Block();
            b1.AppendText("What is CSXC?", Tag.H4);
            b1.AppendText("CSXC (C# Cross Compiler) is a project inspired by <a href='http://code.google.com/intl/en/webtoolkit/'>GWT</a> and <a href='http://www.scriptsharp.com'>Script#</a>, it can compile your C# code to Javascript code.", Tag.H5);
            this.AppendControl(b1);

            Block b2 = new Block();
            b2.AppendText("Why CSXC?", Tag.H4);
            b2.AppendText("It brings the full power of VStudio IDE to your JavaScript/Ajax development - intellisense/refactor/compile time check...", Tag.H5);

            this.AppendControl(b2);

            Block b3 = new Block();
            b3.AppendText("How does CSXC work", Tag.H4);
            b3.AppendText("CSXC is based on <a href='http://msdn.microsoft.com/en-us/roslyn'>Microsoft Project Roslyn</a>, it will parse your C# source code and translate them to standard javascript.", Tag.H5);

            Image img = new Image("./imgs/workings.png");
            img.Height = 50;
            img.Width = 100;
            b3.AppendControl(img);

            this.AppendControl(b3);
        }
    }
}
